<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>视图</title>
    <script src="http://apps.bdimg.com/libs/underscore.js/1.7.0/underscore-min.js"></script>
    <script src="http://apps.bdimg.com/libs/zepto/1.1.4/zepto.min.js"></script>
    <script src="http://apps.bdimg.com/libs/backbone.js/1.1.2/backbone-min.js"></script>
</head>
<body>
    <p id="header">111</p>
</body>
<script>
        var ToDoItemView = Backbone.View.extend({
             /* "tagName":'input',
              "className":'item_task',
              "id":'item1',
              "attributes":{
                  style:'color:red'
              }*/
            //约定,需要自己调用
            render:function(){
                this.$el.html('<span>header</span>')
                return this;
            }

        });
         var  view = new ToDoItemView({
             el:'#header',
             model:'a'
         })
        view.render();
         console.log(view);
      //   console.log(view.attributes.style)


</script>
</html>